package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BizAuthorize;
import com.ruoyi.system.mapper.BizAuthorizeMapper;
import com.ruoyi.system.service.BizAuthorizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BizAuthorizeServiceImpl implements BizAuthorizeService {

    @Autowired
    private BizAuthorizeMapper bizAuthorizeMapper;

    @Override
    public List<BizAuthorize> selectAuthorizeList(BizAuthorize authorize) {
        return bizAuthorizeMapper.selectAuthorizeList(authorize);
    }

    @Override
    public BizAuthorize selectAuthorizeById(Long id) {
        return bizAuthorizeMapper.selectAuthorizeById(id);
    }

    @Override
    public int insertAuthorize(BizAuthorize authorize) {
        return bizAuthorizeMapper.insertAuthorize(authorize);
    }

    @Override
    public int updateAuthorize(BizAuthorize authorize) {
        return bizAuthorizeMapper.updateAuthorize(authorize);
    }

    @Override
    public int deleteAuthorizeById(Long id) {
        return bizAuthorizeMapper.deleteAuthorizeById(id);
    }

    @Override
    public int checkAuthorizeNameUnique(String name, String authorizeType) {
        return bizAuthorizeMapper.checkAuthorizeNameUnique(name, authorizeType);
    }

    @Override
    public List<BizAuthorize> queryByCondition(BizAuthorize authorize) {
        return bizAuthorizeMapper.queryByCondition(authorize);
    }
}
